namespace WPFPractice.UserControls.DynamicColumnTable
{
	/// <summary>
	/// 列
	/// </summary>
	public class TableColumn : TableRowColBase
	{
		public TableColumn() : base(RowColType.Column) { }

		/// <summary>
		/// 构造
		/// </summary>
		/// <param name="header">标题，默认会同步设置 Tag</param>
		public TableColumn(string header) : base(RowColType.Column, header)
		{
			Tag = header;
		}

		/// <summary>
		/// 构造
		/// </summary>
		/// <param name="header">标题</param>
		/// <param name="tag">标识</param>
		public TableColumn(string header, string tag) : base(RowColType.Column, header)
		{
			Tag = tag;
		}

		/// <summary>
		/// 宽度（设置后会覆盖 ColumnWidth）
		/// </summary>
		public double? Width { get; set; }
	}
}
